var app = getApp();

// 获取当前时间
function getNowFormatDate() {
  var date = new Date();
  var year = date.getFullYear(); //年
  var month = date.getMonth() + 1; //月
  var day = date.getDate(); //日
  if (month >= 1 && month <= 9) {
    month = "0" + month;
  }
  if (day >= 0 && day <= 9) {
    day = "0" + day;
  }
  var currentdate = year + "-" + month + "-" + day;
  return currentdate;
}

module.exports = {
  getNowFormatDate: getNowFormatDate
}